import request from '#/utils/requestAbort';

// 省份-交易中心-场站（数据权限）
export async function queryMarketList(menuCode) {
  return request(`/power/dataPower/common/${menuCode}/t_station`, {
    method: 'GET',
  });
}
// 绿证筛选数据
export async function queryParamConfig() {
  return request('/tianji-transaction/greenCertificateManagement/queryParamConfig', {
    method: 'GET',
  });
}
// 绿证概览数据
export async function GreenCertificateData(data) {
  return request('/tianji-transaction/greenCertificateManagement/queryGreenCertificateOverview', {
    method: 'POST',
    data,
  });
}
// 详情数据编辑保存接口
export async function aveGreenCertificateInfo(data) {
  return request('/tianji-transaction/greenCertificateManagement/saveGreenCertificateInformation', {
    method: 'POST',
    data,
  });
}
// 场站详情聚合数据
export async function stationDetailData(data) {
  return request('/tianji-transaction/greenCertificateManagement/stationGatherDetail', {
    method: 'POST',
    data,
  });
}
// 全部人员查询
export async function getAllPerson() {
  return request('/tianji-transaction/greenCertificateManagement/getPersonDetail', {
    method: 'GET',
  });
}
export async function queryOperationLog(id) {
  return request(`/tianji-transaction/greenCertificateManagement/operationLog/${id}`, {
    method: 'GET',
  });
}
